'use strict';
// Copyright 2014 Blueant Inc. All Rights Reserved.

/**
 * @fileoverview 充值功能
 * @author agl
 */

var listTotalPayInfo = require('./pay/listTotalPayInfo');
var pickTotalPayReward = require('./pay/pickTotalPayReward');
var listDailyPayInfo = require('./pay/listDailyPayInfo');
var pickDailyPayReward = require('./pay/pickDailyPayReward');
var listTotalPayDayInfo = require('./pay/listTotalPayDayInfo');
var pickTotalPayDayReward = require('./pay/pickTotalPayDayReward');
var listSinglePayInfo = require('./pay/listSinglePayInfo');
var pickRedPacket = require('./pay/pickRedPacket');

module.exports = function (app) {
    return new Handler(app);
};

var Handler = function (app) {
    this.app = app;
};

/**
 * 查询累计充值活动信息
 */
Handler.prototype.listTotalPayInfo = function (msg, session, next) {
    listTotalPayInfo(msg, session, next);
};

/**
 * 领取累计充值活动奖励
 */
Handler.prototype.pickTotalPayReward = function (msg, session, next) {
    pickTotalPayReward(msg, session, next);
};

/**
 * 查询每日充值活动信息
 */
Handler.prototype.listDailyPayInfo = function (msg, session, next) {
    listDailyPayInfo(msg, session, next);
};

/**
 * 领取每日充值活动奖励
 */
Handler.prototype.pickDailyPayReward = function (msg, session, next) {
    pickDailyPayReward(msg, session, next);
};

/**
 * 查询累计充值天数活动信息
 */
Handler.prototype.listTotalPayDayInfo = function (msg, session, next) {
    listTotalPayDayInfo(msg, session, next);
};

/**
 * 领取累计充值天数活动奖励
 */
Handler.prototype.pickTotalPayDayReward = function (msg, session, next) {
    pickTotalPayDayReward(msg, session, next);
};

/**
 * 查询单笔充值信息
 */
Handler.prototype.listSinglePayInfo = function (msg, session, next) {
    listSinglePayInfo(msg, session, next);
};

/**
 * 领取全服红包
 */
Handler.prototype.pickRedPacket = function (msg, session, next) {
    pickRedPacket(msg, session, next);
};
